package com.yanqu.road.entity.log.cross.xingyou;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_c_log_xing_you_ya_men", autoSave = true, desc = "行游山水-衙门操作", eventName = "mouwater_yamen", dataUpload = true, uploadCk = true, isCross = true)
public class LogCrossXingYouYamen extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(isIndex = true, desc = "分组id")
    private int groupId;
    @FieldTypeAnnotation(desc = "队伍ID", isIndex = true, dataAttribute = "team_id")
    private int teamId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "类型：1：放置；2：重随；3：被逮捕", dataAttribute = "mouwater_type")
    private int actionType;

    @FieldTypeAnnotation(desc = "捕快所属队伍id", dataAttribute = "mouwater_beteam")
    private int captorTeamId;

    @FieldTypeAnnotation(desc = "位置")
    private int pos;

    @FieldTypeAnnotation(desc = "格子", dataAttribute = "mouwater_grid")
    private int gridId;

    @FieldTypeAnnotation(desc = "漂泊状态")
    private int drift;

    @FieldTypeAnnotation(desc = "失去银票", dataAttribute = "mouwater_siluse")
    private int loseSliver;

    @FieldTypeAnnotation(desc = "失去金页子", dataAttribute = "mouwater_goluse")
    private int loseGold;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogCrossXingYouYamen(int activityId, int teamId, long userId, int actionType, int captorTeamId, int pos, int gridId, int drift, int loseSliver, int loseGold) {
        this.activityId = activityId;
        this.teamId = teamId;
        this.userId = userId;
        this.actionType = actionType;
        this.captorTeamId = captorTeamId;
        this.pos = pos;
        this.gridId = gridId;
        this.drift = drift;
        this.loseSliver = loseSliver;
        this.loseGold = loseGold;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        this.teamId = teamId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getActionType() {
        return actionType;
    }

    public void setActionType(int actionType) {
        this.actionType = actionType;
    }

    public int getCaptorTeamId() {
        return captorTeamId;
    }

    public void setCaptorTeamId(int captorTeamId) {
        this.captorTeamId = captorTeamId;
    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        this.pos = pos;
    }

    public int getGridId() {
        return gridId;
    }

    public void setGridId(int gridId) {
        this.gridId = gridId;
    }

    public int getDrift() {
        return drift;
    }

    public void setDrift(int drift) {
        this.drift = drift;
    }

    public int getLoseSliver() {
        return loseSliver;
    }

    public void setLoseSliver(int loseSliver) {
        this.loseSliver = loseSliver;
    }

    public int getLoseGold() {
        return loseGold;
    }

    public void setLoseGold(int loseGold) {
        this.loseGold = loseGold;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
